package entity.salary;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 *
 * </p>
 *
 * @author beisheng
 * @since 2023-03-22
 */
@Getter
@Setter
@TableName("sa_scheme")
public class Scheme implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "fa_id", type = IdType.AUTO)
    private Integer faId;

    /**
     * 方案名称
     */
    @TableField("fa_name")
    private String faName;

    /**
     * 薪资周期
     */
    @TableField("pay_cycle")
    private String payCycle;

    /**
     * 税款所属期
     */
    @TableField("tax_period")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date taxPeriod;

    /**
     * 选择人员
     */
    @TableField("selectors")
    private String selectors;

    /**
     * 关联考勤
     */
    @TableField("checking_id")
    private Integer checkingId;

    /**
     * 关联社保
     */
    @TableField("security_id")
    private Integer securityId;

    /**
     * 关联公积金
     */
    @TableField("accumulation_id")
    private Integer accumulationId;

    /**
     * 备注
     */
    @TableField("back")
    private String back;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;

    /**
     * 修改时间
     */
    @TableField("update_time")
    private Date updateTime;

    /**
     * 删除标志
     */
    @TableField("delete_flag")
    private Integer deleteFlag;


}
